package com.janwen.j2ee.jmx;

public class ServerMonitor implements ServerMonitorMBean {

     private ServerImpl serverImpl =null;	
     
	
	public ServerMonitor(ServerImpl target){
		serverImpl = target;
	}
	@Override
	public long getUpTime() {
		return serverImpl.startTime -System.currentTimeMillis();
	}

}
